/*
 * Copyright 2011-2025 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0.
 * See `LICENSE` in the project root for license information.
 */

package me.ijleex.platform.framework.minio;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * MinIO连接属性.
 *
 * @author liym
 * @since 2025-01-11 21:45 新建
 */
@ConfigurationProperties(prefix = "spring.minio")
public class MinioProperties {

    /**
     * MinIO服务器的网络地址，用于访问存储桶和对象。例如：{@code http://127.0.0.1:9000}，{@code 9000}为MinIO的API默认端口
     */
    private String endpoint;

    /**
     * MinIO用户标识和验证访问者身份的唯一标识符
     */
    private String accessKey;

    /**
     * MinIO中与AccessKey关联的密码，用于验证访问者的身份
     */
    private String secretKey;

    public MinioProperties() {
    }

    public String getEndpoint() {
        return this.endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKey() {
        return this.accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return this.secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

}
